.class public Lcom/htc/android/footprints/utils/FootprintDBScanner;
.super Landroid/content/BroadcastReceiver;
.source "FootprintDBScanner.java"


# static fields
.field private static final TAG:Ljava/lang/String; = "FootprintDBScanner"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 18
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 2
    .parameter "context"
    .parameter "intent"

    .prologue
    .line 24
    const-string v0, "FootprintDBScanner"

    const-string v1, "FootprintDBScanner onReceive(android.intent.action.MEDIA_MOUNTED), sync db now!"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 25
    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->hasExternalStorage()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 27
    new-instance v0, Lcom/htc/android/footprints/utils/FootprintDBScanner$1;

    invoke-direct {v0, p0, p1}, Lcom/htc/android/footprints/utils/FootprintDBScanner$1;-><init>(Lcom/htc/android/footprints/utils/FootprintDBScanner;Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/FootprintDBScanner$1;->start()V

    .line 52
    :cond_0
    return-void
.end method
